import {
  get,
  post,
  reqDelete
} from '@/utils/axios'

// 年份下拉框
export function listYsDictionary(params) {
  return get('/ysDictionary/listYsDictionary', params)
}

// 列表
export function listYsManageSubjectPage(params) {
  return post('/ysManageSubject/listYsManageSubjectPage', params)
}

// 新增 编辑
export function updateYsManageSubject(params) {
  return post('/ysManageSubject/updateYsManageSubject', params)
}

// 删除
export function removeYsManageSubject(params) {
  return reqDelete('/ysManageSubject/removeYsManageSubject', params)
}

// 业务和管理对照用友下拉数据
export function listYySubject(params) {
  return get('/ysSubject/listYySubject', params)
}

// 预算科目下拉数据
export function listYsSubject5(params) {
  return get('/ysSubject/listYsSubject5', params)
}
// 继承
export function inherit(params) {
  return get('/ysManageSubject/inherit', params)
}

// 采集用友科目数据
export function collectSubjectData(params) {
  return get('/ysEtlAccount/collectSubjectData', params)
}

// 下载模板
export function exportExcelYsManageSubjectDemo(params) {
  return post('/ysManageSubject/exportExcelYsManageSubjectDemo', params, {
    responseType: 'blob'
  })
}

// 导出
export function exportExcelYsManageSubject(params) {
  return post('/ysManageSubject/exportExcelYsManageSubject', params, {
    responseType: 'blob'
  })
}
// 导入
export function importExcelYsManageSubject(params) {
  return post('/ysManageSubject/importExcelYsManageSubject', params, {
    headers: { 'Content-Type': 'multipart/form-data' },
    responseType: 'blob'
  })
}

// 部门
export function listManageDept(params) {
  return get('/ysSubject/listManageDept', params)
}
